package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Comment;
import com.tanhua.dubbo.server.pojo.Publish;
import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.dubbo.server.vo.PageInfo;

import java.util.List;

public interface QuanZiApi {

    //发布动态
    String savePublish(Publish publish);

    //查询动态
    PageInfo<Publish> queryPublishList(Long userId, Integer page, Integer pageSize);

    //点赞
    boolean saveLikeComment(Long userId, String publishId);

    //喜欢
    boolean saveLoveComment(Long userId, String publishId);

    //取消点赞.喜欢
    boolean removeComment(Long userId, String publishId, Integer commentType);

    //保存评论信息
    boolean saveComment(Long userId, String publishId, Integer type, String content);

    //查询评论数
    Long queryCommentCount(String publishId, Integer type);

    //根据id查询
    Publish queryPublishById(String publishId);

    //查询评论列表
    PageInfo<Comment> queryCommentList(String publishId, Integer page, Integer pageSize);

    //查询用户评论数据
    PageInfo<Comment> queryCommentListByUser(Long userId, Integer type, Integer page, Integer pageSize);

    //根据pid批量查询动态列表
    List<Publish> queryPublishByPids(List<Long> pids);

    //查询用户个人动态
    PageInfo<Publish> queryAlbumList(Long userId, Integer page, Integer pageSize);

}
